Scanner scanner=new Scanner(System.in);
int i=scanner.nextInt();
for (int j = 1; j <= 9; j++) {
	for (int k = 0; k <= 9; k++) {
		for (int l = 0; l <=9 ; l++) {
			for (int m = 0; m <=9 ; m++) {
				if (j*1000+k*100+l*10+m==i) {
					System.out.println("千位为"+j+"；百位为"+k+"；十位为"+l+"；个位为"+m+"。");
				}
			}
		}
	}
}
